<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>支出管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <%@include file="../../../static/common/common.jsp" %>
    <script type="text/javascript" src="/static/js/payManager.js"></script>

</head>
<!--非常关键-->
<jsp:include page="/static/style/loader.jsp"></jsp:include>
<body>
<table id="payManage_datagrid"></table>
<div id="payManage_toolbar">

    <a class="easyui-linkbutton" iconCls="icon-add" plain="true" data-cmd="add">新增</a>
    <a class="easyui-linkbutton" iconCls="icon-reload" plain="true" data-cmd="reload">刷新</a>
    <a id="btn_changeState" class="easyui-linkbutton" iconCls="icon-larges" plain="true" data-cmd="changeState">审核</a>
    <input id="ss" class="easyui-searchbox"
           data-options="searcher:search,prompt:'归属班级'" name="keyword">
    支付方式:<input id="btn_paysize" class="easyui-combobox"
                data-options="url:'/dictionaryItem/getItemBySn.do?sn=paymentType',valueField:'id',textField:'name',panelHeight:'auto'"
                name="paymentType">
    入职时间:<input id="btn_beginDate" class="easyui-datebox" name="beginDate"/> ~ <input id="endDate"
                                                                                      class="easyui-datebox"
                                                                                      name="endDate"/>
    <a class="easyui-linkbutton" iconCls="icon-search" plain="true" data-cmd="searchForEmp">查询</a>
    <a class="easyui-linkbutton" iconCls="icon-print" plain="true" data-cmd="exportXls">导出</a>
    <a id="btn_edit" class="easyui-linkbutton" iconCls="icon-edit" plain="true" data-cmd="edit">编辑</a>
    <a id="btn_delete" class="easyui-linkbutton" iconCls="icon-remove" plain="true" data-cmd="delete">删除</a>
</div>

<div id="payManage_btns">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="save">保存</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
</div>

<div id="payManage_import">
    <form action="/payManage/importXls1.do" method="post" enctype="multipart/form-data">
        选择上传文件:
        <input type="file" name="file"/><br/>
        <a class="easyui-linkbutton" iconCls="icon-help" plain="true" data-cmd="download">模板下载</a><br>
        多文件上传:<input name="files" class="easyui-filebox" style="width:300px"
                     data-options="accept:'application/vnd.ms-excel',multiple:true"><br>
        <input type="submit" value="提交">
    </form>
</div>


<div id="payManage_dialog">
    <form id="payManage_form" method="post">
        <input type="hidden" name="id">
        <table align="center" style="margin-top: 20px" cellspacing="10px" cellpadding="5px">

            <tr>
                <td>时间</td>
                <td><input class="easyui-datebox" data-options="required:true" name="time"/></td>
            </tr>
            <tr>
                <td>支付金额</td>
                <td><input type="text" class="easyui-validatebox" data-options="required:true" name="money"/></td>
            </tr>
            <tr>
                <td>摘要</td>
                <td><input type="text" name="summary"></td>
            </tr>
            <tr>
                <td>支出人</td>
                <td><input class="easyui-combobox"
                           data-options="url:'/employee/selectAll.do',valueField:'id',textField:'username',panelHeight:'auto'"
                           name="payer.id">
                </td>
            </tr>
            <tr>
                <td>经手人</td>
                <td><input class="easyui-combobox"
                           data-options="url:'/employee/selectAll.do',valueField:'id',textField:'username',panelHeight:'auto'"
                           name="handler.id"></td>
            </tr>
            <tr>
                <td>支付方式</td>
                <td><input class="easyui-combobox"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=paymentType',valueField:'id',textField:'name',panelHeight:'auto'"
                           name="payment.id"></td>
            </tr>
            <tr>
                <td>花费类型</td>
                <td><input type="text" name="pay_type"></td>
            </tr>
            <tr>
                <td>单据号</td>
                <td><input type="text" name="bill_number"></td>
            </tr>
            <tr>
                <td>归属班级</td>
                <td><input class="easyui-combobox"
                           data-options="url:'/locationClass/selectAll.do',valueField:'id',textField:'name',panelHeight:'auto'"
                           name="classMan.id"></td>
            </tr>

        </table>
    </form>
</div>
</body>
</html>
